{view 'public/head'}
</head>
<body>
    <div class="container-fluid">
        <form class="form-horizontal" action="{site 'system/staff_look'}" accept-charset="utf-8" method="post">
            <div id="legend" class="">
                <legend class="">修改员工 <a href="{$this->t_client->reffer()}" title="返回" class="btn"><i class="icon-double-angle-left"></i> 返回</a></legend>
            </div>
            <table class="table table-hover">
                <tr>
                    <th style="width:130px;text-align:right">员工部门</th>
                    <td>
                        {$look.category}
                    </td>

                    <th style="text-align:right">员工姓名</th>
                    <td>{$look.realname}</td>

                    <th style="text-align:right">登录账号</th>
                    <td>{$look.username}</td>

                    <th style="text-align:right">电子邮箱</th>
                    <td>{$look.email}</td>

                    <th style="text-align:right">手机号码</th>
                    <td>{$look.mobile}</td>
                </tr>
                <tr>
                    <th style="text-align:right">基本工资</th>
                    <td>{$look.wage}</td>

                    <th style="text-align:right">备注</th>
                    <td>{$look.remark}</td>

                    <th style="text-align:right">员工状态</th>
                    <td>
                        {$this->m_staff->status($look.status)}
                    </td>

                    <th style="text-align:right">创建日期</th>
                    <td>
                        {array_shift($this->t_date->get_lastdate((int)$look.create))}
                    </td>

                    <th style="text-align:right">更新时间</th>
                    <td>
                        {array_shift($this->t_date->get_lastdate((int)$look.update))}
                    </td>
                </tr>



            </table>


            {loop $menu as $var}
            <div id="legend" class="">
                <legend class=""><h5>{$var.name}</h5></legend>
            </div>
            {loop $var.s as $var2}
            <div class="control-group" id='checkbox{$var2.id}'>
                <label class="control-label"><strong>{$var2.name}</strong>



                </label>
                <div class="controls">
                    {loop $var2.s as $var3}
                    <label class="checkbox inline"><input type="checkbox" name="menu[]" value="{$var3.id}"{in_array($var3.id, $staff_menu)?' checked':''} disabled>{$var3.name}</label>
                    {/loop}
                </div>
            </div>
            {/loop}
            {/loop}

        </form>






    </div>
    {view 'public/js'}   
</body>
</html>
